import { request } from '../request';

/** get list */
export function reportInfoList(params: Api.SystemManage.ReportInfoSearchParams) {
  return request<Api.SystemManage.ReportInfoList>({
    url: '/reportInfo/list',
    method: 'post',
    data: params
  });
}

/** save */
export function reportInfoSave(params?: Api.SystemManage.ReportInfoSaveParams) {
  return request<boolean>({
    url: '/reportInfo/add',
    method: 'post',
    data: params
  });
}

/** update */
export function reportInfoUpdate(params?: Api.SystemManage.ReportInfoUpdateParams) {
  return request<boolean>({
    url: '/reportInfo/update',
    method: 'post',
    data: params
  });
}

/** get */
export function reportInfoGet(params: { id: string }) {
  return request<Api.SystemManage.ReportInfo>({
    url: '/reportInfo/get',
    method: 'post',
    data: params
  });
}

/** del */
export function reportInfoDel(params: { id: string }) {
  return request<boolean>({
    url: '/reportInfo/del',
    method: 'post',
    data: params
  });
}

/** delBatch */
export function reportInfoDelBatch(params: { ids: Array<string> }) {
  return request<boolean>({
    url: '/reportInfo/delBatch',
    method: 'post',
    data: params
  });
}
